try (InputStream stream = resources.getResourceAsStream(resourceLocation)) {
    ...
}